<?php
class dt_pc extends toba_datos_tabla
{
	function get_listado()
	{
		$sql = "SELECT
			t_p.id_pc,
			t_t.descripcion as id_tipo_nombre,
			t_p.disco,
			t_p.memoria,
			t_p.procesador,
			t_p.motherboard,
			t_p.placa_video,
			t_p.placa_red,
			t_p.placa_sonido,
			t_p.lectora,
			t_p.sistema_operativo,
			t_p.detalle,
			terminal.id_terminal as id_terminal_nombre
		FROM
			pc as t_p	LEFT OUTER JOIN tipo as t_t ON (t_p.id_tipo = t_t.id_tipo)
			LEFT OUTER JOIN terminal as terminal ON (t_p.id_terminal = terminal.id_terminal)
		ORDER BY id_pc";
		return toba::db('fce')->consultar($sql);
	}



}
?>